From 2f000b5e155f2526a5c64305254ef15b890987ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20H=C3=A4rdeman?= Date: Fri, 10 Oct 2025 10:16:35 +0200 Subject: [PATCH] luci-mod-network: add global DUID cfg option MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This exposes the default DHCP DUID config option in the LuCI interface. For reference: https://github.com/openwrt/openwrt/pull/20359 https://github.com/openwrt/odhcpd/pull/274 Signed-off-by: David Härdeman --- .../htdocs/luci-static/resources/view/network/interfaces.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 548bc65fe4..5768304e66 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -1659,6 +1659,11 @@ return view.extend({ _('This prefix is randomly generated at first install.')); o.datatype = 'cidr6'; + o = s.option(form.Value, 'dhcp_default_duid', _('Default DUID'), + _('The default DUID for this device, used when acting as a DHCP server or client. The client identifier can be overridden on a per-interface basis.') + '
' + + _('This identifier is randomly generated the first time the device is booted.')); + o.datatype = 'and(rangelength(6,260),hexstring)'; + const l3mdevhelp1 = _('%s services running on this device in the default VRF context (ie., not bound to any VRF device) shall work across all VRF domains.'); const l3mdevhelp2 = _('Off means VRF traffic will be handled exclusively by sockets bound to VRFs.'); -- 2.30.2